﻿<!DOCTYPE html>
<!--
Version: 1.0.0
Author: Dora
Website: http://www.html-js.cn/
Contact: cms@doramart.com
-->
<html>
<head>
    <meta charset="UTF-8">
    <title><%= title%></title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- Bootstrap 3.3.2 -->
    <link href="<%=staticFilePath%>/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- Font Awesome Icons -->
    <link href="http://apps.bdimg.com/libs/fontawesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <!--数据表格相关样式-->
    <link href="<%=staticFilePath%>/plugins/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="<%=staticFilePath%>/stylesheets/backstage/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect.
    -->
    <link href="<%=staticFilePath%>/stylesheets/backstage/css/skins/skin-blue.min.css" rel="stylesheet" type="text/css" />

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="<%=staticFilePath%>/javascripts/backstage/html5shiv.js"></script>
    <script src="<%=staticFilePath%>/javascripts/backstage/respond.min.js"></script>
    <![endif]-->


    <!--百度编辑器-->
    <!-- 配置文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
    <!-- jQuery 2.1.3 -->
    <script src="<%=staticFilePath%>/javascripts/jQuery-2.1.3.min.js" type="text/javascript"></script>
    <!--zTree树形组件-->
    <link rel="stylesheet" href="<%=staticFilePath%>/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="<%=staticFilePath%>/plugins/ztree/js/jquery.ztree.all-3.5.js"></script>
    <!--数据绑定-->
    <script src="<%=staticFilePath%>/javascripts/angular.min.js"></script>
    <!--uploadify-->
    <link href="<%=staticFilePath%>/plugins/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
    <script src="<%=staticFilePath%>/plugins/uploadify/jquery.uploadify.min.js"></script>

    <!--七牛上传-->
    <script src="<%=staticFilePath%>/plugins/qiniu/plupload.full.min.js"></script>
    <script src="<%=staticFilePath%>/plugins/qiniu/qiniu.js"></script>

    <!--幻灯片插件开始-->
    <script type="text/javascript" src="<%=staticFilePath%>/plugins/fancybox/source/jquery.fancybox.js?v=2.1.5"></script>
    <link rel="stylesheet" type="text/css" href="<%=staticFilePath%>/plugins/fancybox/source/jquery.fancybox.css?v=2.1.5" media="screen" />

    <script src="/javascripts/dora-angular.js"></script>
    <link rel="stylesheet" href="/stylesheets/backstage/css/style.css"/>
    <!--<script src="/javascripts/app.js"></script>-->

</head>

<body class="skin-blue" ng-app="adminApp" ng-controller="adminCtrl">
<!--通用模态窗口开始-->

<!--信息提示模态窗口-->
<div class="modal fade" id="askifdo">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">{{warningInfo.title}}</h4>
            </div>
            <div class="modal-body">
                <div class="text-warning"><i class="icon fa fa-warning"></i>&nbsp;{{warningInfo.message}}</div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!--通用模态窗口结束-->

<div class="wrapper">

<!-- Main Header -->
<header class="main-header">
    <!-- Logo -->
    <a href="/admin/manage" class="logo"><b>Dora</b>CMS</a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <!-- Messages: style can be found in dropdown.less-->
                <li class="dropdown messages-menu hide">
                    <!-- Menu toggle button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope-o"></i>
                        <span class="label label-success">4</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">You have 4 messages</li>
                        <li>
                            <!-- inner menu: contains the messages -->
                            <ul class="menu">
                                <li><!-- start message -->
                                    <a href="#">
                                        <div class="pull-left">
                                            <!-- User Image -->
                                            <img src="/stylesheets/backstage/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
                                        </div>
                                        <!-- Message title and timestamp -->
                                        <h4>
                                            Support Team
                                            <small><i class="fa fa-clock-o"></i> 5 mins</small>
                                        </h4>
                                        <!-- The message -->
                                        <p>Why not buy a new awesome theme?</p>
                                    </a>
                                </li><!-- end message -->
                            </ul><!-- /.menu -->
                        </li>
                        <li class="footer"><a href="#">See All Messages</a></li>
                    </ul>
                </li><!-- /.messages-menu -->

                <!-- Notifications Menu -->
                <li class="dropdown notifications-menu hide">
                    <!-- Menu toggle button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bell-o"></i>
                        <span class="label label-warning">10</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">You have 10 notifications</li>
                        <li>
                            <!-- Inner Menu: contains the notifications -->
                            <ul class="menu">
                                <li><!-- start notification -->
                                    <a href="#">
                                        <i class="fa fa-users text-aqua"></i> 5 new members joined today
                                    </a>
                                </li><!-- end notification -->
                            </ul>
                        </li>
                        <li class="footer"><a href="#">View all</a></li>
                    </ul>
                </li>
                <!-- Tasks Menu -->
                <li class="dropdown tasks-menu hide">
                    <!-- Menu Toggle Button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-flag-o"></i>
                        <span class="label label-danger">9</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">You have 9 tasks</li>
                        <li>
                            <!-- Inner menu: contains the tasks -->
                            <ul class="menu">
                                <li><!-- Task item -->
                                    <a href="#">
                                        <!-- Task title and progress text -->
                                        <h3>
                                            Design some buttons
                                            <small class="pull-right">20%</small>
                                        </h3>
                                        <!-- The progress bar -->
                                        <div class="progress xs">
                                            <!-- Change the css width attribute to simulate progress -->
                                            <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                <span class="sr-only">20% Complete</span>
                                            </div>
                                        </div>
                                    </a>
                                </li><!-- end task item -->
                            </ul>
                        </li>
                        <li class="footer">
                            <a href="#">View all tasks</a>
                        </li>
                    </ul>
                </li>
                <!-- User Account Menu -->
                <% if(adminlogined){ %>
                <li class="dropdown user user-menu">
                    <!-- Menu Toggle Button -->

                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img alt="User Image" class="user-image" src="<%=adminUserInfo.logo%>">
                        <!--<span class="fa fa-user">&nbsp;</span>-->
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <span class="hidden-xs" id="adminUserName"><%=adminUserInfo.username%></span>

                    </a>

                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <li class="user-header">
                            <img src="<%=adminUserInfo.logo%>" class="img-circle" alt="User Image" />
                            <p class="hide">
                                Alexander Pierce - Web Developer
                                <small>Member since Nov. 2012</small>
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <li class="user-body hide">
                            <div class="col-xs-4 text-center">
                                <a href="#">Followers</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Sales</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Friends</a>
                            </div>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="#" class="btn btn-default btn-flat">Profile</a>
                            </div>
                            <div class="pull-right">
                                <a href="/admin/logout" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
                <% } %>
            </ul>
        </div>
    </nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar user panel (optional) -->

        <!-- search form (Optional) -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search..."/>
              <span class="input-group-btn">
                <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
            </div>
        </form>
        <!-- /.search form -->

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu">
            <li class="header">HEADER</li>
            <!-- Optionally, you can add icons to the links -->
            <input type="hidden" id="currentCate" value="<%= bigCategory%>"/>
            <li class="treeview active" cid="sysTemManage_0">
                <a href="#"><span>系统管理</span> <i class="fa fa-angle-left pull-right"></i></a>
                <ul class="treeview-menu">
                    <li cid="sysTemManage_0_1"><a href="/admin/manage/adminUsersList"><i class="fa fa-user"></i> 系统用户管理</a></li>
                    <li cid="sysTemManage_0_2"><a href="/admin/manage/adminGroupList"><i class="fa fa-group"></i> 用户组设定</a></li>
                    <li cid="sysTemManage_0_3"><a href="/admin/manage/emailTempList"><i class="fa fa-envelope"></i> 邮件模板</a></li>
                    <li cid="sysTemManage_0_4"><a href="/admin/manage/adsList"><i class="fa fa-camera-retro"></i> 广告管理</a></li>
                    <li cid="sysTemManage_0_5"><a href="/admin/manage/filesList"><i class="fa fa-file-text"></i> 文件管理器</a></li>
                    <li cid="sysTemManage_0_6">
                        <a href="#"><i class="fa fa-cloud"></i> 数据管理<i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li cid="sysTemManage_0_6_1"><a href="/admin/manage/dataManage/m/backUpData"><i class="fa fa-copy"></i> 数据备份</a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview" cid="contentManage_1">
                <a href="#"><span>文档管理</span> <i class="fa fa-angle-left pull-right"></i></a>
                <ul class="treeview-menu">
                    <li cid="contentManage_1_1"><a href="/admin/manage/contentList"><i class="fa fa-file-text-o"></i> 文档管理</a></li>
                    <li cid="contentManage_1_2"><a href="/admin/manage/contentCategorys"><i class="fa fa-clipboard"></i> 文档类别管理</a></li>
                    <li cid="contentManage_1_3"><a href="/admin/manage/contentTags"><i class="fa fa-tags"></i> 文档标签管理</a></li>
                    <li cid="contentManage_1_4"><a href="/admin/manage/contentTemps"><i class="fa fa-dashboard"></i> 文档模板配置</a></li>
                    <li cid="contentManage_1_5">
                        <a href="#"><i class="fa fa-tumblr-square"></i> 文档属性管理<i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li cid="contentManage_1_5_1"><a href="/admin/manage/contentAttributes/m/fileType"><i class="fa fa-film"></i> 影视类型</a></li>
                            <li cid="contentManage_1_5_2"><a href="/admin/manage/contentAttributes/m/locations"><i class="fa fa-flag"></i> 国家地区</a></li>
                            <li cid="contentManage_1_5_3"><a href="/admin/manage/contentAttributes/m/years"><i class="fa fa-calendar"></i> 年份属性</a></li>
                        </ul>
                    </li>
                    <li cid="contentManage_1_6"><a href="/admin/manage/contentMsgs"><i class="fa fa-comments"></i> 留言管理</a></li>
                </ul>
            </li>
            <li class="treeview" cid="userManage_2">
                <a href="#"><span>会员管理</span> <i class="fa fa-angle-left pull-right"></i></a>
                <ul class="treeview-menu">
                    <li cid="userManage_2_1"><a href="/admin/manage/regUsersList"><i class="fa fa-users"></i> 注册会员列表</a></li>
                </ul>
            </li>
        </ul><!-- /.sidebar-menu -->

    </section>
    <!-- /.sidebar -->
</aside>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <%= title%>
            <small><%= description%></small>
            <span class="text-warning helloInfo"><i class="fa fa-fw fa-coffee"></i>&nbsp;<script src="http://hello.api.235dns.com/api.php?code=html&key=db42083664c1803f907180b0e80bf9e2" language="JavaScript" type="text/javascript"></script></span>
        </h1>
        <ol class="breadcrumb hide">
            <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
            <li class="active">Here</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <%-body %><!-- Your Page Content Here -->

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->

<!-- Main Footer -->
<footer class="main-footer">
    <!-- To the right -->
    <div class="pull-right hidden-xs">
        Anything you want
    </div>
    <!-- Default to the left -->
    <strong>Copyright &copy; 2015 <a href="http://www.doramart.com">DoraCMS</a>.</strong> All rights reserved.
</footer>

</div><!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->


<!-- Bootstrap 3.3.2 JS -->
<script src="<%=staticFilePath%>/javascripts/bootstrap.min.js" type="text/javascript"></script>
<!-- 数据表格插件开始 -->
<script src="<%=staticFilePath%>/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="<%=staticFilePath%>/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>

<!-- AdminLTE App -->
<script src="<%=staticFilePath%>/javascripts/backstage/app.min.js" type="text/javascript"></script>



<script>
    $(function(){
        var curerntCate = $("#currentCate").val();
        var cateList = $(".sidebar-menu").find("li");
        var pCateList = $(".sidebar-menu").find(".treeview");
        for(var i=0;i<cateList.length;i++){
            var obj = $(cateList[i]);
            if(obj.attr("cid") === curerntCate){
                obj.addClass("active");
                for(var j=0;j<pCateList.length;j++){
                    var pobj = $(pCateList[j]);
                    if(pobj.attr("cid").split("_")[0] === obj.attr("cid").split("_")[0]){
                        pobj.addClass("active").siblings().removeClass("active");
                    }
                }
            }
        }
    })
</script>


<!-- Optionally, you can add Slimscroll and FastClick plugins.
      Both of these plugins are recommended to enhance the
      user experience -->
</body>
</html>